package com.loong.cron;

/**
 * Created by 梁浩峰 on 2016/12/5 14:56.
 */
public class CronUtil {
    public static void main(String[] args) {
        String beginTime = "";
        String endtime = "";
        String cronStr = "0 15 10 ? * *";
    }

    static void cronRegex(String cronStr) {
        String[] split = cronStr.split(" ");
        if (split.length == 6) {
            int seconds = Integer.parseInt(split[0]);
            int minutes = Integer.parseInt(split[1]);
            int hours = Integer.parseInt(split[2]);
            int days = Integer.parseInt(split[3]);
            int mothons = Integer.parseInt(split[4]);
            int years = Integer.parseInt(split[5]);
            String weeks = split[6];

            int interval = seconds * 1000 + minutes * 60 * 1000 + hours * 60 * 60 * 1000 + days * 24 * 60 * 60 * 1000 + hours * 60 * 60 * 1000 + hours * 60 * 60 * 1000;

        } else if (split.length > 6) {


        }
    }
}
